<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateHostApplyLogTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('host_apply_log', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->default(0)->comment('申请用户ID');
            $table->string('skills', 100)->default('')->comment('申请技能');
            $table->string('wechat', 50)->default('')->comment('微信账号');
            $table->timestamps();
            $table->tinyInteger('status')->default(0)->comment('0:待审核，1:审核通过，2:审核不通过');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('host_apply_log');
    }
}
